/*
 * @Author: your name
 * @Date: 2022-03-27 11:16:03
 * @LastEditTime: 2022-11-25 08:35:19
 * @LastEditors: 飞越疯人院 353362604@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \reconfiguration-administration\src\Common\Mars3D\style.jsx
 */
import { colorRgb } from '../Configure/Common'

const { mars3d, Cesium } = window

// *** ~@ Entity 对象
/**
 *  文字
 *  TODO Label
 *  !!!! CanvasLabel  文字贴图
 */
export const labelList = (text = '默认文字', color = '#262626') => ({
    label001: {
        style: {
            text,
            font_size: 25,
            font_family: '楷体',
            color,
            outline: true,
            outlineColor: '#bfbfbf',
            outlineWidth: 2,
            clampToGround: true,
            visibleDepth: false,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Label/Label001.png',
    },
    label002: {
        style: {
            text,
            font_size: 25,
            font_family: '微软雅黑',
            color,
            outline: true,
            outlineColor: '#000',
            outlineWidth: 3,
            clampToGround: true,
            visibleDepth: false,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Label/Label002.png',
    },
    label003: {
        style: {
            text,
            font_size: 25,
            font_family: '微软雅黑',
            font_weight: 'bold ',
            color,
            boderColor: '#15d1f2',
            outline: true,
            outlineColor: '#fff',
            outlineWidth: 5,
            clampToGround: true,
            visibleDepth: false,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Label/Label003.png',
    },
    label004: {
        style: {
            text,
            font_size: 25,
            font_family: '微软雅黑',
            font_weight: 'bold ',
            color,
            clampToGround: true,
            visibleDepth: false,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Label/Label004.png',
    },
    label005: {
        style: {
            text,
            font_size: 25,
            font_family: '微软雅黑',
            font_weight: 'bold ',
            color,
            background: true,
            backgroundColor: '#262626',
            backgroundOpacity: 0.7,
            backgroundPadding: 15,
            clampToGround: true,
            visibleDepth: false,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Label/Label005.png',
    },
    label006: {
        style: {
            text,
            font_size: 25,
            font_family: '微软雅黑',
            font_weight: 'bold ',
            color,
            boderColor: '#15d1f2',
            outline: true,
            outlineColor: '#fff',
            outlineWidth: 5,
            visibleDepth: false,
            scaleByDistance: true,
            scaleByDistance_far: 350,
            scaleByDistance_near: 10,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Label/Label003.png',
    },
    label007: {
        style: {
            text,
            font_size: 160,
            font_family: '微软雅黑',
            font_weight: 'bold ',
            color,
            boderColor: '#15d1f2',
            outline: true,
            outlineColor: '#fff',
            outlineWidth: 5,
            visibleDepth: false,
            scaleByDistance: true,
            scaleByDistance_far: 350,
            scaleByDistance_near: 10,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Label/Label003.png',
    },
})

/**
 *  ModelEntity 小模型
 *  TODO
 *  !!!! ModelEntity
 */

export const modelList = (
    text = '默认文字',
    url = '//data.mars3d.cn/gltf/mars/jingche/jingche.gltf',
    scale = 1,
    heading = 0,
    show = 1,
    color = '#262626',
) => ({
    model001: {
        style: {
            scale,
            heading,
            url: url,
            // clampToGround: true,
            label: {
                text: show === 1 ? text : '',
                font_size: 20,
                color,
                outline: true,
                outlineColor: 'white',
                pixelOffsetY: -100,
                visibleDepth: false,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Model/Model001.png',
    },
})

/**
 *  Point 点
 *  TODO Ponit
 */

export const pointList = (text = '默认文字', show = 1, color = '#262626') => ({
    point001: {
        style: {
            pixelSize: 12,
            color,
            clampToGround: true,
            visibleDepth: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                font_family: '微软雅黑',
                font_weight: 'bold ',
                color,
                boderColor: '#15d1f2',
                outline: true,
                outlineColor: '#fff',
                outlineWidth: 5,
                addHeight: 200,
                pixelOffsetY: -30,
                visibleDepth: false,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Point/Point001.png',
    },
})

/**
 *  Billboard 图标点
 *  TODO
 *  !!!!  CanvasBillboard FontBillboardEntity DivBillboardEntity
 */

export const billboardList = (text = '默认文字', show = 1, color = '#262626') => ({
    billboard001: {
        style: {
            image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Billboard/小三角.png',
            clampToGround: true,
            visibleDepth: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 16,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 40000,
                distanceDisplayCondition_near: 0,
                clampToGround: true,
                visibleDepth: false,
                color: 'white',
                outline: true,
                outlineColor: 'white',
                background: true,
                backgroundColor: '#006C8E',
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Billboard/Billboard001.png',
    },
    billboard002: {
        style: {
            image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Billboard/小三角.png',
            visibleDepth: false,
            label: {
                show: false,
                text: text,
                font_size: 18,
                color,
                pixelOffsetY: -40,
                visibleDepth: false,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Billboard/Billboard001.png',
    },
})

export const divBillboardList = (color = '#262626') => ({
    divBillboard001: {
        style: {
            color,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
})

/**
 *  PolylineEntity 线 闭合线
 *  TODO
 *  !!!! PolylineEntity
 */
export const polylineList = (text = '默认文字', show = 1, closure = 0, color = '#262626') => ({
    polyline001: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline001.png',
    },
    polyline002: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlow, {
                color,
                image: '//mars3d.cn/img/textures/LinkPulse.png',
                speed: 5,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline002.png',
    },
    polyline003: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlowColor, {
                color,
                speed: 8,
                percent: 0.5,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline003.png',
    },
    polyline004: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineTrail, {
                color,
                speed: 15,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline004.png',
    },
    polyline005: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineArrow, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline005.png',
    },
    polyline006: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineDash, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline006.png',
    },
    polyline007: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineGlow, {
                color,
                glowPower: 0.75,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline007.png',
    },
    polyline008: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineOutline, {
                color,
                glowPower: 0.75,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline008.png',
    },
    polyline009: {
        style: {
            color,
            width: 5,
            // clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineGlow, {
                color,
                glowPower: 0.75,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline007.png',
    },

    polyline010: {
        style: {
            color,
            width: 5,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline010.png',
    },
    polyline011: {
        style: {
            color,
            width: 15,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineGlow, {
                color,
                glowPower: 0.75,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Polyline/Polyline007.png',
    },
    polyline012: {
        style: {
            color,
            width: 4,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineBloom, {
                color,
                glow: 2,
                speed: 5,
            }),
        },
        image: '北环线',
    },
    polyline013: {
        style: {
            color,
            width: 8,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            classificationType: Cesium.ClassificationType.TERRAIN,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.ODLine, {
                color,
                speed: 4,
                bidirectional: 2,
            }),
        },
        image: 'OD随机颜色线',
    },
})

/**
 *  CurveEntity 曲线 闭合曲线
 *  TODO
 *  !!!! CurveEntity
 */
export const curveList = (text = '默认文字', show = 1, closure = 0, color = '#262626') => ({
    curve001: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve001.png',
    },
    curve002: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlow, {
                color,
                image: '//mars3d.cn/img/textures/LinkPulse.png',
                speed: 5,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve002.png',
    },
    curve003: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlowColor, {
                color,
                speed: 15,
                percent: 0.5,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve003.png',
    },
    curve004: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineTrail, {
                color,
                speed: 15,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve004.png',
    },
    curve005: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineArrow, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve005.png',
    },
    curve006: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineDash, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve006.png',
    },
    curve007: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineGlow, {
                color,
                glowPower: 0.75,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve007.png',
    },
    curve008: {
        style: {
            color,
            width: 5,
            clampToGround: true,
            depthFail: false,
            closure: closure ? true : false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineOutline, {
                color,
                glowPower: 0.75,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Curve/Curve008.png',
    },
})

/**
 *  PolylineVolumeEntity 管道线
 *  TODO
 */
export const polylineVolumeList = (text = '默认文字', show = 1, radius = 10, color = '#262626') => ({
    polylineVolume001: {
        style: {
            shape: 'pipeline',
            radius,
            color,
            opacity: 0.9,
            addHeight: 100,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
})

/**
 *  WallEntity 墙 闭合墙
 *  TODO
 */
export const wallList = (text = '默认文字', show = 1, closure = 0, diffHeight = 500, speed = 1, color = '#f00') => ({
    wall001: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            visibleDepth: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                clampToGround: true,
                visibleDepth: false,
                pixelOffsetY: -50,
                outline: true,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall001.png',
    },
    wall002: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolylineGlow, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall002.png',
    },
    wall003: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.Color, {
                speed,
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall003.png',
    },
    wall004: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.CylinderWave, {
                speed,
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall004.png',
    },
    wall005: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.EllipsoidElectric, {
                speed,
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall005.png',
    },
    wall006: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.EllipsoidWave, {
                speed,
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall006.png',
    },
    wall007: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.Grid, {
                speed,
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall007.png',
    },
    wall008: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                offsetY: -40,
                visibleDepth: false,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlow, {
                speed,
                image: '//mars3d.cn/img/textures/fence.png',
                color,
                axisY: true,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall008.png',
    },
    wall009: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.WallScroll, {
                image: '//mars3d.cn/img/textures/fence.png',
                color,
                count: 3,
                speed,
                bloom: true,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall009.png',
    },
    wall010: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlowColor, {
                color,
                speed,
                percent: 0.5,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall010.png',
    },
    wall011: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineTrail, {
                color,
                speed,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall011.png',
    },
    wall012: {
        style: {
            color,
            opacity: 0.8,
            diffHeight,
            closure: closure ? true : false,
            clampToGround: true,
            depthFail: false,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.PolyGradient, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Wall/Wall012.png',
    },
})

/**
 *  RectangleEntity 矩形 矩形体
 *  TODO
 *  !!!! RectangleEntity
 */

export const rectangleList = (text = '默认文字', show = 1, rotationDegree = 0, diffHeight = 50, color = '#262626') => ({
    rectangle001: {
        style: {
            color,
            opacity: 0.5,
            diffHeight,
            clampToGround: true,
            rotationDegree,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.Grid, {
                // image: "//mars3d.cn/img/textures/fence.png",
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Rectangle/Rectangle001.png',
    },
    rectangle002: {
        style: {
            color,
            opacity: 0.5,
            diffHeight,
            clampToGround: true,
            rotationDegree,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.Checkerboard, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Rectangle/Rectangle002.png',
    },
    rectangle003: {
        style: {
            color,
            opacity: 0.5,
            diffHeight,
            clampToGround: true,
            rotationDegree,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.CylinderWave, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Rectangle/Rectangle003.png',
    },
    rectangle004: {
        style: {
            color,
            opacity: 0.5,
            diffHeight,
            clampToGround: true,
            rotationDegree,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.EllipsoidElectric, {
                // image: "//mars3d.cn/img/textures/fence.png",
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Rectangle/Rectangle004.png',
    },
    rectangle005: {
        style: {
            color,
            opacity: 0.5,
            diffHeight,
            clampToGround: true,
            rotationDegree,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.EllipsoidWave, {
                // image: "//mars3d.cn/img/textures/fence.png",
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Rectangle/Rectangle005.png',
    },
    rectangle006: {
        style: {
            color,
            opacity: 0.5,
            diffHeight,
            clampToGround: true,
            rotationDegree,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
            material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.Grid, {
                color,
            }),
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Rectangle/Rectangle006.png',
    },

    rectangle101: {
        style: {
            color,
            opacity: 0.5,
            diffHeight,
            rotationDegree,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Rectangle/Rectangle101.png',
    },
})

/**
 *  PolygonEntity 多边形 多边体
 *  TODO
 *  !!!! PolygonEntity
 */
export const polygonList = (text = '默认文字', show = 1, rotationDegree = 0, diffHeight = 50, color = '#262626') => ({
    polygon001: {
        style: {
            color,
            opacity: 1,
            clampToGround: true,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
    polygon002: {
        style: {
            color,
            opacity: 1,
            diffHeight,
            height: 100, // 水面高度
            materialType: mars3d.MaterialType.Water,
            normalMap: '//mars3d.cn/img/textures/waterNormals.jpg',
            frequency: 1000.0, // 控制波数的数字。
            animationSpeed: 0.01, // 控制水的动画速度的数字。
            amplitude: 10, // 控制水波振幅的数字。
            specularIntensity: 0.5, // 控制镜面反射强度的数字。
            baseWaterColor: '#006ab4', // rgba颜色对象基础颜色的水。#00ffff,#00baff,#006ab4
            blendColor: '#006ab4', // 从水中混合到非水域时使用的rgba颜色对象。
            clampToGround: false, // 是否贴地
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },

    polygon003: {
        style: {
            materialType: mars3d.MaterialType.Water,
            normalMap: '//mars3d.cn/img/textures/waterNormals.jpg',
            frequency: 1000.0, // 控制波数的数字。
            animationSpeed: 0.01, // 控制水的动画速度的数字。
            amplitude: 10, // 控制水波振幅的数字。
            specularIntensity: 0.5, // 控制镜面反射强度的数字。
            baseWaterColor: '#006ab4', // rgba颜色对象基础颜色的水。#00ffff,#00baff,#006ab4
            blendColor: '#006ab4', // 从水中混合到非水域时使用的rgba颜色对象。
            clampToGround: true,
            classificationType: 0,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },

    polygon004: {
        style: {
            color,
            opacity: 0.4,
            clampToGround: true,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
    polygon005: {
        style: {
            color,
            opacity: 1,
            // diffHeight,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },

    polygon006: {
        style: {
            materialType: mars3d.MaterialType.Water,
            normalMap: '//mars3d.cn/img/textures/waterNormals.jpg',
            frequency: 1000.0, // 波数。
            animationSpeed: 0.01, // 动画速度。
            amplitude: 1, // 水波振幅。
            specularIntensity: 0.8, // 控制镜面反射强度的数字。
            baseWaterColor: '#005fb5', // 基础颜色的水。#00ffff,#00baff,#006ab4
            blendColor: '#00ffff', // 混合
            clampToGround: true,
            classificationType: 0,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
})

/**
 *  Regular 正多边形 正多边体
 *  TODO
 *  !!!! Regular
 */
export const regularList = (
    text = '默认文字',
    show = 1,
    diffHeight = 50,
    border = 3,
    radius = 50,
    startAngle = 0,
    color = '#262626',
) => ({
    regular001: {
        style: {
            border,
            radius,
            startAngle,
            clampToGround: true,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
    regular002: {
        style: {
            border,
            radius,
            startAngle,
            diffHeight,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
})

/**
 *  CircleEntity 圆 圆柱
 *  TODO
 *  !!!! CircleEntity
 */
export const circleList = (text = '默认文字', show = 1, radius = 50, diffHeight = 50, color = '#262626') => ({
    circle001: {
        style: {
            radius,
            clampToGround: true,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
    circle002: {
        style: {
            radius,
            diffHeight,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
})

/**
 *  EllipseEntity 椭圆 椭圆柱状
 *  TODO
 *  !!!! EllipseEntity
 */

export const ellipseList = (
    text = '默认文字',
    show = 1,
    radius = '50,50',
    rotationDegree = 0,
    diffHeight = 50,
    color = '#262626',
) => ({
    ellipse001: {
        style: {
            semiMinorAxis: radius.split(',')[0],
            semiMajorAxis: radius.split(',')[1],
            rotationDegree,
            clampToGround: true,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
    ellipse002: {
        style: {
            semiMinorAxis: radius.split(',')[0],
            semiMajorAxis: radius.split(',')[1],
            rotationDegree,
            diffHeight,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
})

/**
 *  Sector 扇形 扇形体
 *  TODO
 *  !!!! Sector
 */
export const sectorList = (
    text = '默认文字',
    show = 1,
    radius = 50,
    angle = '[0, 0]',
    diffHeight = 50,
    color = '#262626',
) => ({
    sector001: {
        style: {
            radius,
            startAngle: JSON.parse(angle)[0],
            endAngle: JSON.parse(angle)[1],
            clampToGround: true,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
    sector002: {
        style: {
            radius,
            startAngle: JSON.parse(angle)[0],
            endAngle: JSON.parse(angle)[1],
            diffHeight,
            color,
            opacity: 0.5,
            label: {
                text: show === 1 ? text : '',
                font_size: 18,
                color,
                pixelOffsetY: -40,
                distanceDisplayCondition: true,
                distanceDisplayCondition_far: 500000,
                distanceDisplayCondition_near: 0,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
    },
})

/**
 *  EllipsoidEntity 球体 半球体
 *  TODO
 *  !!!! EllipsoidEntity
 */
export const ellipsoidList = (text = '默认文字', show = 1, radius = '[100,100,100]', color = '#262626') => {
    radius = JSON.parse(radius)
    return {
        ellipsoid001: {
            style: {
                radii: new Cesium.Cartesian3(radius[0], radius[1], radius[2]),
                color,
                opacity: 0.8,
                material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.NeonLight, {
                    image: 'http://mars3d.cn/img/textures/fence.png',
                    color,
                    repeat: 200,
                    frameRate: 500,
                    speed: 15,
                    axisY: true,
                }),
                label: {
                    text: show === 1 ? text : '',
                    font_size: 18,
                    color,
                    pixelOffsetY: -10,
                },
            },
            image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
        },
    }
}

/**
 *  CylinderEntity 圆锥
 *  TODO
 *  !!!! CylinderEntity
 */

export const cylinderList = (text = '默认文字', show = 1, radius = '[20,50,100]', color = '#262626') => {
    radius = JSON.parse(radius)
    return {
        ellipsoid001: {
            style: {
                topRadius: radius[0],
                bottomRadius: radius[1],
                length: radius[2],
                color,
                opacity: 0.8,
                label: {
                    text: show === 1 ? text : '',
                    font_size: 18,
                    color,
                    pixelOffsetY: -10,
                },
            },
            image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Point/Point001.png',
        },
    }
}

// *** ~@ Primitive 对象

/**
 *  LightCone 光锥
 *  TODO
 *  !!!! LightCone
 */

/**
 *  Road 道路
 *  TODO
 *  !!!! Road
 */

/**
 *  DiffuseWall 扩散围墙
 *  TODO
 *  !!!! DiffuseWall
 */

/**
 *  ScrollWall 走马灯围墙
 *  TODO
 *  !!!! ScrollWall
 */

/**
 *  Water 水域面 水域体
 *  TODO
 *  !!!! Water
 */

/**
 *  Tetrahedron 四面体
 *  TODO
 *  !!!! Tetrahedron
 */

/**
 *  TerrainClip 挖空
 *  TODO
 */

export const terrainList = () => ({
    terrain001: {
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/AStyle/Model/Model001.png',
    },
})

// DIV矢量对象

/**
 *  DivGraphic div对象
 *  TODO
 *  !!!! DivGraphic  DivLightPoint DivBoderLabel DivUpLabel Popup DivLightPoint
 */

export const divList = (name = '默认文字', color = '#000000', index = 1) => ({
    DIV001: {
        name,
        style: {
            className: 'DIV001',
            html: ` 
                <div class="Mars3DDiv001">
                    <div class="Back">
                        <div class='title'>${name}</div>
                        <img class='cameras' src='https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/摄像头.png'/>
                    </div>
                    <div class='Column' />
                </div>`,
            offsetX: -130,
            offsetY: -80,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/DIV001.png',
    },
    DIV002: {
        name,
        style: {
            className: 'DIV002',
            html: ` 
                <div class="Mars3DDiv002">
                    <div class='title' style='background:${color}' >
                        <div style='color:${color}'>${index}</div>
                        <div>${name}</div>
                    </div>
                    <div class='triangle' style=' border-color:transparent transparent transparent ${color}' />
                </div>`,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/DIV002.png',
    },
    DIV003: {
        name,
        style: {
            className: 'DIV003',
            html: ` 
                <div class="Mars3DDiv003">
                    <div class='title' style='border-color:${color}' >
                        <div>${name}</div>
                    </div>
                    <div class='triangle' style=' border-color:transparent transparent transparent ${color}' />
                </div>`,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/DIV003.png',
    },
    DIV004: {
        name,
        style: {
            className: 'DIV004',
            html: ` 
                <div class="Mars3DDiv004">
                    <div>${name}</div>
                    <img class='cameras' src='https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/定位.png'/>
                </div>`,
            // offsetY: -50,
            offsetX: -50,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/DIV004.png',
    },
    DIV005: {
        name,
        style: {
            className: 'DIV005',
            html: ` 
                <div class="Mars3DDiv005">
                    <div class='title' style='--color:${colorRgb(color, 1)}'>
                        <div class='One'> 
                            <div>${name.split(',')[0]}</div>
                            <div>${name.split(',')[1]}</div>
                        </div>
                        <div class='Two'> 建设里程 : ${name.split(',')[2]} </div>
                        <div class='Two'> 总体造价 : ${name.split(',')[3]} </div>
                    </div>
                    <div class='triangle' style='--color:${colorRgb(color, 1)}' />
                </div>`,
            offsetX: -16,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/DIV005.png',
    },
    DIV006: {
        name,
        style: {
            className: 'DIV006',
            html: ` 
                <div class="Mars3DDiv006">
                    <div class='title' style='--color:${colorRgb(color, 1)}'>
                        <div class='One'> 
                            <div>${name.split(',')[0]}</div>
                            <div>${name.split(',')[1]}</div>
                        </div>
                    </div>
                    <div class='triangle' style='--color:${colorRgb(color, 1)}' />
                </div>`,
            offsetX: -16,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/DIV006.png',
    },
    DIV007: {
        name,
        style: {
            className: 'DIV007',
            html: ` 
                <div class="Mars3DDiv007 ${name.split(',')[0]}" style='--color:${color}'>
                    <div class='title'>${name.split(',')[1]}</div>
                    <div class='triangle' />
                </div>`,
            // offsetX: 0,
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/DIV/DIV006.png',
    },
})

// KML
export const kmlList = (color = '#262626') => ({
    KML001: {
        style: {
            styleOptions: {
                materialType: 'PolylineGlow',
                width: 20,
                opacity: 0.8,
                color,
                arcType: Cesium.ArcType.GEODESIC,
                classificationType: 0,
                clampToGround: true,
                depthFail: true,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/KML/KML001.png',
    },
    KML002: {
        style: {
            styleOptions: {
                materialType: 'PolylineDash',
                width: 5,
                color,
                gapColor: '#666666',
                dashLength: 20,
                arcType: Cesium.ArcType.GEODESIC,
                classificationType: 0,
                clampToGround: true,
                depthFail: true,
            },
        },
        image: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/KML/KML002.png',
    },
})
